﻿<?php
define('DEFAULT_MODULE', 'index');
define('DATA_TYPE', 'mysql');
define('MODULE_DIR', 'module');
define('SQL_DIR', 'sql');
define('MODEL_DIR', 'model');
define('ADDON_DIR', 'addon');
define('TPL_DIR', 'view');
define('LANG_DIR', 'language');
define('FONT_DIR', 'font');
define('DATA_DIR', 'data');
define('STATIC_DIR', 'static');
define('SUBSCRIBE_DIR', 'subscribe');
define('ADMIN_LOG', true); // true 文件记录static/log/; false 不记录
define('SITE_SUB', false);
define('TPL_EX', 'php'); // 模板后缀名
define('BAIDU_API', '');
define('MENU_LEVEL', 3);
define('MENU_TYPE', false); //false responsive; true PC; 当使用静态文件显示时, 如需及时显示效果, 请后台编辑一下频道使其更新.
// 上传限制
define('UPLOAD_ACCEPT_ON', false);
define('UPLOAD_ACCEPT', 'localhost,127.0.0.1');
define('IMG_QUALITY', 80);
define('IMG_SIZE', '2mb');
define('IMG_EXT', 'jpg,jpeg,gif,png');
define('MEDIA_SIZE', '200mb');
define('MEDIA_EXT', 'mp3,mp4');
define('FILE_SIZE', '20mb');
define('FILE_EXT', 'doc,docx,xls,xlsx,ppt,pptx,zip,rar,7z,pdf,txt,apk,ipa,mp3,mp4');
// kindeditor相关
define('UPLOAD_LIMIT', true);
define('UPLOAD_IMG', 600);
// 验证码
define('VERIFYCODE_WIDTH', 150);
define('VERIFYCODE_HEIGHT', 50);
// 初始化页面
define('REWRITE', false);
define('REWRITE_EX', 'html');
define('CART', false); // 对应购物车cls.cart类使用及运费的后台配置
define('COOKIE_TIMEOUT', 15 * 60 * 60); //超时
define('COOKIE_EXPIRE', 30 * 24 * 3600); // cookie超期时间(天*时*秒)
define('COOKIE_DOMAIN', 'localhost');
// 后台无须验证的页面
define('ADMIN_PAGE_SIZE', 20);
define('ADMIN_IGNORE_URI', '["s=admino&m=index&c=login","s=admino&m=index&c=login_action","s=admino&m=verifycode","s=admin&m=index&c=login","s=admin&m=index&c=login_action","s=admin&m=verifycode"]');
define('USER_IGNORE_URI', '["s=user&m=index&c=reg","s=user&m=index&c=reg_action","s=user&m=index&c=login","s=user&m=index&c=login_action","s=user&m=index&c=login_sms_action","s=user&m=verifycode","s=user&m=index&c=find_password","s=user&m=index&c=find_password_action","s=user&m=index&c=verifycode_action","s=user&m=index&c=reset_password","s=user&m=index&c=reset_password_action","s=user&m=index&c=get_car_type_two","s=user&m=index&c=reg_qrcode"]');
// 时差
$GLOBALS['timezone'] = 8;

// 默认分页结构
define('PAGE_STRUCTURE', '["<li class=\"page-item\"><a class=\"page-link\" href=\"","1.html\" title=\"\u9996\u9875\">&laquo;<\/a><\/li>","<li class=\"page-item disabled\"><a href=\"###\" class=\"page-link\" title=\"\u4e0a\u4e00\u9875\">&lsaquo;<\/a><\/li>",".html\" title=\"\u4e0a\u4e00\u9875\">&lsaquo;<\/a><\/li>","<li class=\"page-item active\"><a href=\"###\" class=\"page-link\">","<\/a><\/li>",".html\" title=\"\u7b2c","\u9875\">",".html\" title=\"\u5c3e\u9875\">&raquo;<\/a><\/li>","<li class=\"page-item disabled\"><a href=\"###\" class=\"page-link\" title=\"\u4e0b\u4e00\u9875\">&rsaquo;<\/a><\/li>",".html\" title=\"\u4e0b\u4e00\u9875\">&rsaquo;<\/a><\/li>","=1\" title=\"\u9996\u9875\">&laquo;<\/a><\/li>","\" title=\"\u4e0a\u4e00\u9875\">&lsaquo;<\/a><\/li>","\" title=\"\u7b2c","\" title=\"\u5c3e\u9875\">&raquo;<\/a><\/li>","\" title=\"\u4e0b\u4e00\u9875\">&rsaquo;<\/a><\/li>","<li class=\"page-item active\"><a href=\"###\" class=\"page-link\">","<\/a><\/li>"]');